<template>
	<view :style="themeColor">
		<view class="page">
			<view class="flex benben-position-layout flex flex-wrap align-center rankingList_flex_0"
				:style="{height:(88+StatusBarRpx)+'rpx',paddingTop:StatusBarRpx+'rpx', }">
				<view class='flex flex-wrap align-center justify-between flex-sub rankingList_fd0_0'>
					<view class='flex flex-wrap align-center rankingList_fd0_0_c0' @tap.stop="handleJumpDiy"
						data-type="back" data-url="1">
						<text class='fu-iconfont2  rankingList_fd0_0_c0_c0'>&#xe794;</text>
					</view>
					<text class='rankingList_fd0_0_c1'>排行榜</text>
					<view class='flex flex-wrap align-center rankingList_fd0_0_c0'>
					</view>
				</view>

			</view>
			<view :style="{height: (88+StatusBarRpx)+'rpx'}"></view>
			<!---flex布局flex布局开始-->
			<view class="flex flex-direction flex-wrap align-stretch benben-flex-layout rankingList_flex_1">
				<template v-for='(item,key0) in Leaderboard'>
					<view class='flex flex-wrap align-center rankingList_fd1_0' :key='key0'>
						<text class='rankingList_fd1_0_c0'>{{key0+1}}</text>
						<image class='rankingList_fd1_0_c1' mode="aspectFill" :src='item.avatar'></image>
						<view class='flex flex-direction flex-wrap align-stretch flex-sub'>
							<text class='rankingList_fd1_0_c2_c0'>{{item.nickname}}</text>
							<view class='flex flex-wrap align-center rankingList_fd1_0_c2_c1'>
								<view class='flex flex-wrap align-center'>
									<template v-for="starNum in [1,2,3,4,5]">
										<image v-if="item.fuwuxingji >= starNum" :key="starNum"
											class='rankingList_star1fd1_0_c2_c1_c0' mode="aspectFit"
											:src='STATIC_URL+"105.png"'></image>
										<image v-else :key="starNum" class='rankingList_star1fd1_0_c2_c1_c0'
											mode="aspectFit" :src='STATIC_URL+"104.png"'></image>
									</template>
								</view>
								<!-- <text class='rankingList_fd1_0_c2_c1_c1'>{{item.fuwuxingji}}</text> -->
							</view>
						</view>
						<text class='rankingList_fd1_0_c3'>接单量</text>
						<text class='rankingList_fd1_0_c4'>{{item.order_num}}</text>
					</view>
				</template>

			</view>

			<!---flex布局flex布局结束-->


		</view>
	</view>
</template>
<script>
	import {
		validate
	} from '@/common/utils/validate.js'

	export default {
		components: {},


		data() {
			return {
				"Leaderboard": []
			};
		},
		computed: {
			themeColor() {
				return this.$store.getters.themeColor
			},

		},
		watch: {},
		onLoad(options) {
			this.LeaderboardListFunc()
		},
		onUnload() {

		},
		onReady() {

		},
		onShow() {

		},
		onHide() {

		},
		onResize() {

		},
		onPullDownRefresh() {
			this.LeaderboardListFunc()
		},
		onReachBottom(e) {

		},
		onPageScroll(e) {

		},
		methods: {
			//排行榜
			async LeaderboardListFunc() {
				//请求方法
				//数据验证

				let dataLeaderboard = await this.$api.get(global.apiUrls.post63db2b8498cb3, {

				});

				if (dataLeaderboard.data.code != 1) {
					this.$message.info(dataLeaderboard.data.msg);
					return
				}
				let infoLeaderboard = dataLeaderboard.data;
				this.Leaderboard = infoLeaderboard.data

			}
		}
	};
</script>
<style lang="scss" scoped>
	.page {
		width: 100vw;
		overflow-x: hidden;
		min-height: calc(100vh - var(--window-bottom));
		background: rgba(255, 255, 255, 1);
		background-size: 100% auto;
	}

	.rankingList_flex_0 {
		background: rgba(255, 255, 255, 1);
		width: 750rpx;
		height: 88rpx;
		overflow: hidden;
		z-index: 10;
		top: 0rpx;
		background-size: 100% auto !important;
	}

	.rankingList_fd0_0_c1 {
		color: #333333;
		font-size: 36rpx;
		font-weight: 500;
		line-height: 50rpx;
	}

	.rankingList_fd0_0_c0_c0 {
		font-size: 32rpx;
		color: rgba(51, 51, 51, 1);
	}

	.rankingList_fd0_0_c0 {
		width: 120rpx;
		height: 88rpx;
	}

	.rankingList_fd0_0 {
		padding: 0rpx 32rpx 0rpx 32rpx;
		height: 88rpx;
	}

	.rankingList_flex_1 {
		padding: 32rpx 24rpx 0rpx 24rpx;
	}

	.rankingList_fd1_0_c4 {
		font-size: 24rpx;
		font-weight: 400;
		color: #333333;
		line-height: 33rpx;
	}

	.rankingList_fd1_0_c3 {
		font-size: 24rpx;
		font-weight: 400;
		color: #333333;
		line-height: 33rpx;
		margin: 0rpx 10rpx 0rpx 0rpx;
	}

	.rankingList_fd1_0_c2_c1_c1 {
		color: #999999;
		font-size: 24rpx;
		font-weight: 400;
		line-height: 33rpx;
		margin: 0rpx 0rpx 0rpx 6rpx;
	}

	.rankingList_star1fd1_0_c2_c1_c0 {
		height: 19rpx;
		margin: 0rpx 4rpx 0rpx 0rpx;
		width: 19rpx;
	}

	.rankingList_star1fd1_0_c2_c1_c0 {
		width: 19rpx;
		height: 19rpx;
		margin: 0rpx 4rpx 0rpx 0rpx;
	}

	.rankingList_fd1_0_c2_c1 {
		margin: 10rpx 0rpx 0rpx 0rpx;
	}

	.rankingList_fd1_0_c2_c0 {
		color: #333333;
		font-size: 32rpx;
		font-weight: 700;
		line-height: 45rpx;
		-webkit-line-clamp: 1;
		overflow: hidden;
		text-overflow: ellipsis;
		display: -webkit-box;
		-webkit-box-orient: vertical;
	}

	.rankingList_fd1_0_c1 {
		width: 88rpx;
		height: 88rpx;
		border-radius: 44rpx 44rpx 44rpx 44rpx;
		margin: 0rpx 24rpx 0rpx 0rpx;
	}

	.rankingList_fd1_0_c0 {
		color: #EBA400;
		font-size: 48rpx;
		font-weight: 800;
		line-height: 52rpx;
		margin: 0rpx 32rpx 0rpx 0rpx;
		min-width: 70rpx;
	}

	.rankingList_fd1_0 {
		margin: 0rpx 0rpx 56rpx 0rpx;
	}
</style>